package com.mashibing.apidriver.controller;

import com.mashibing.apidriver.service.UserService;
import org.mashibing.dto.DriverUser;
import org.mashibing.dto.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author:
 * @create: 2024/6/27 14:47
 * @description:
 */
@RestController
public class UserController {

    @Autowired
    private UserService userService;

    /**
     * 修改司机信息
     */
    @PutMapping("/user")
    public ResponseResult updateUser(@RequestBody DriverUser driverUser) {
        return userService.updateUser(driverUser);
    }
}
